import request from '@/utils/request'

export function metadata(database, table) {
  return request({
    url: 'api/hive/metadata/' + database + '/' + table,
    method: 'get'
  })
}

export function funcationTest(data) {
  return request({
    url: 'api/hive/metadata/funcation/test',
    method: 'post',
    data
  })
}

export default {metadata, funcationTest}
